Skip to content

feat: fall back to module resolution when relative imports fail - #198

Open
kherock wants to merge 1 commit into
Anidetrix:mainfrom
kherock:fallback-module-resolution
Open

feat: fall back to module resolution when relative imports fail#198
kherock wants to merge 1 commit into
Anidetrix:mainfrom
kherock:fallback-module-resolution

Conversation

@kherock

@kherock kherock commented Nov 18, 2021

Copy link
Copy Markdown
Contributor

Resolves #187. These changes enable developers to import sass by the same resolution logic that webpack's sass-loader uses.

@kherock
kherock force-pushed the fallback-module-resolution branch from 8dd01ab to 3efaa44 Compare January 16, 2022 05:15
@kherock
kherock marked this pull request as ready for review January 16, 2022 05:16
@codecov

codecov Bot commented Jan 16, 2022

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.45455% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 99.54%. Comparing base (11fcf2d) to head (3efaa44).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/loaders/sass/importer.ts 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #198      +/-   ##
==========================================
- Coverage   99.63%   99.54%   -0.09%     
==========================================
  Files          36       36              
  Lines        1083     1089       +6     
  Branches      318      319       +1     
==========================================
+ Hits         1079     1084       +5     
- Misses          4        5       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kherock

kherock commented Jan 16, 2022

Copy link
Copy Markdown
Contributor Author

@Anidetrix (awesome to see that you're back!) I just rebased this and would appreciate getting it in an upcoming release. The implementation here should be fully backwards-compatible.

@leximarie

Copy link
Copy Markdown

@Anidetrix This would be very helpful to get in a release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support resolving Sass modules without ~ in url

2 participants